clipboard-win
Provides simple way to interact with Windows clipboard.
Clipboard
All read and write access to Windows clipboard requires user to open it.
For your convenience you can use Clipboard struct that opens it at creation and closes on its drop.
Alternatively you can access all functionality directly through raw module.
Below you can find examples of usage.
Empty clipboard
extern crate clipboard_win;
use Clipboard;
Set and get raw data
extern crate clipboard_win;
use formats;
use Clipboard;
use str;
Set and get String
extern crate clipboard_win;
use Clipboard;
use str;
Feature list
utf16error
- Uses non-lossy conversion from UTF-16 to UTF-8. On error returnsio::error
with kindInvalidData